
<h1><?php echo $section;?></h1>

<?php

if(mysql_fetch_assoc($pages) >0) {?>

<ul>
	<?php while ($content=mysql_fetch_assoc($pages))
	{?>
	<li id="pagina-<?php echo $content['id'];?>">
    	<a href="?action=page&id=<?php echo $content['id'];?>"><?php echo $content['title'];?></a>
    </li>
    <?php }?>
</ul>
		
	
<?php }	
	else
	{?>
		<p>nessun risultato</p>
	<?php } ?>